package com.lib.service.impl;

import com.lib.mapper.SearchMapper;
import com.lib.pojo.VO.CategoryVO;
import com.lib.service.SearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SearchServiceImpl implements SearchService {
    @Autowired
    private SearchMapper searchMapper;

    //1：模糊搜索图书名
    @Override
    public List<CategoryVO> searchBookById(String book_name) {
        return searchMapper.searchBookById(book_name);
    }
}
